﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Drawing;

namespace WFFS
{
    class Common{
        //大屏到小屏幕 缩小
        public static Point reduce(Point p){
            int x = p.X * 1024 / 1920;
            int y = p.Y * 768 / 1080;
            Point tp = new Point(x,y);
            return tp;
        }
        //小屏幕到大屏 放大
        public static Point amplify(Point p){
            int x = p.X *  1920/1024;
            int y = p.Y * 1080/768;
            Point tp = new Point(x, y);
            return tp;
        }
    }
  
}
